package com.windea.study.kotlin.jvm.crypt.sections

import kotlin.test.*

class MessageDigestUtilsTest {
	@Test
	fun md5Digest() {
		val input = "你好世界"
		val result = MessageDigestUtils.md5Digest(input.encodeToByteArray())
		println(result)
		println(result.length)
	}
	
	@Test
	fun sha1Digest() {
		val input = "你好世界"
		val result = MessageDigestUtils.sha1Digest(input.encodeToByteArray())
		println(result)
		println(result.length)
	}
	
	@Test
	fun sha256Digest() {
		val input = "你好世界"
		val result = MessageDigestUtils.sha256Digest(input.encodeToByteArray())
		println(result)
		println(result.length)
	}
}
